package testFiguri;

import figuriConcrete.*;
import java.util.*;
import figuriAbstracte.*;

public class TestFiguriGeometrice {
	public static void main(String args[])
	{
		Point a=new Point(0,0);
		Point b=new Point(1,4);
		Point c=new Point(2,0);
		Point d=new Point(2,4);
		
		LinePoint line=new Line();
		line.createPoints();
		ArrayList<Point> linePoints=new ArrayList<Point>();
		linePoints.add(a);
		linePoints.add(b);
		line.setPoints(linePoints);
		System.out.println("Caracteristicile liniei sunt:");
		System.out.println(line);
		System.out.println("Lungimea: "+line.getLength());
	
		PointPoligon triangle=new Triangle();
		triangle.createPoints();
		ArrayList <Point> trianglePoints=new ArrayList<Point>();
		trianglePoints.add(c);
		trianglePoints.add(b);
		trianglePoints.add(d);
		triangle.setPoints(trianglePoints);
		System.out.println("Caracteristicile triunghiului: ");
		System.out.println(triangle);
		System.out.println("Perimetrul: "+triangle.perimeter());
		System.out.println("Aria: "+triangle.getArea());
		
		Poligon square=new Square(5);
		System.out.println("Caracteristicile patratului sunt :");
		System.out.println(square);
		System.out.println("Perimetrul: "+square.perimeter());
		System.out.println("Aria: "+square.getArea());
		
		RoundFigure circle=new Circle(4);
		System.out.println("Caracteristicile cercului sunt: ");
		System.out.println(circle);
		System.out.println("Lungimea : "+circle.getLength());
		System.out.println("Aria cercului: "+circle.getArea());
		
		ShapeLength angle=new Angle(4,90);
		System.out.println("Caracteristicile unghiului sunt: ");
		System.out.println(angle);
		
		
		
		
		
		
		
	}

}
